<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>注册页面</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="extend/jquery1.8.3/jquery.min.js"></script>
        <script>
            function register() {
                var user=$("#user").val();
                var pwd=$("#pwd").val();
                $.post("register.php",{"user":user,"pwd":pwd},function (data) {
                    alert(data);
                })
            }
        </script>
    </head>
    <body>
            用户名：<input type="text" id="user">
            <br><br>
            密码：<input type="password" id="pwd">
            <br><br>
            <button onclick="register()">注册</button>
    </body>
</html>
